package com.mszl.blog.service;

import com.mszl.blog.vo.params.ArticleParam;
import com.mszl.blog.vo.ArticleVo;
import com.mszl.blog.vo.Result;
import com.mszl.blog.vo.params.PageParams;

public interface ArticleService {

    /**
     * 分页查询 文章列表
     * @param pageParams
     * @return
     */
    Result listArticle(PageParams pageParams);

    /**
     * 查询最热文章
     * @param limit
     * @return
     */
    Result hotArticle(int limit);

    /**
     * 查询最新文章
     * @param limit
     * @return
     */
    Result newArticles(int limit);

    /**
     * 文章归档
     * @return
     */
    Result listArchives();


    ArticleVo findArticleById(Long id);

    Result publish(ArticleParam articleParam);
}
